package com.sooth.micro.camunda.converter.bean.listener;

import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.StringUtils;

@Data
@Accessors(chain = true)
public class ExecutionListener {

    private String eventType = "start";

    private String expression;

    private String delegateExpression;

    private String javaClass;

    public boolean isClass() {
        return StringUtils.isNotBlank(javaClass);
    }

    public boolean isDelegateExpression() {
        return StringUtils.isNotBlank(delegateExpression);
    }

    public boolean isExpression() {
        return StringUtils.isNotBlank(expression);
    }
}
